/**
 * 
 */
package org.adorsys.aderp.cash.work.cashcollect;

import java.math.BigDecimal;
import java.util.Date;

import org.adorsys.aderp.cash.domain.CashRegister;

/**
 * @author Boris Waguia
 *
 */
public class CashReport {
	private Date begin;
	private Date end;
	private String cashier;
	private String cashReportNumber;
	private BigDecimal totalCashIn;
	private BigDecimal totalCashOut;
	private BigDecimal totalCashBalance;
	private CashRegister cashRegister;
	
	
	
	public CashReport() {
		super();
	}

	public CashReport(Date begin, Date end, String cashier,
			String cashReportNumber, BigDecimal totalCashIn,
			BigDecimal totalCashOut, BigDecimal totalCashBalance,
			CashRegister cashRegister) {
		super();
		this.begin = begin;
		this.end = end;
		this.cashier = cashier;
		this.cashReportNumber = cashReportNumber;
		this.totalCashIn = totalCashIn;
		this.totalCashOut = totalCashOut;
		this.totalCashBalance = totalCashBalance;
		this.cashRegister = cashRegister;
	}

	public boolean isCashBalancePositive(){
		return this.totalCashIn.doubleValue() <= this.totalCashOut.doubleValue() ? false : true;
	}
	
	public void generateCashReportNumber(){
		
	}
	
}
